using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;

namespace Yammu.Core.VirtualFileSystem 
{
    /// <summary>
    /// Represents a local file.
    /// </summary>
    public sealed class LocalVirtualFile : VFSFileBase
	{
		internal LocalVirtualFile (string virtualPath)
			: base (virtualPath)
		{
		}

		public override Stream Open ()
		{
			return File.OpenRead (VirtualPath);
		}

        public override IList<IVFSItem> Children { get { return null; } }
        public override IList<IVFSItem> Directories { get { return null; } }
        public override IList<IVFSItem> Files { get { return null; } }
        public override string Name
        {
            get { return Path.GetFileName(VirtualPath); }
        }
	}
}


